FROM node:12-alpine
ENV TZ="Asia/Shanghai"
MAINTAINER LCR
WORKDIR /skywalking-rocketbot-ui

RUN apk update \
    && apk add git

RUN  cd .. \
     && git clone https://gitee.com/lcrong/skywalking-rocketbot-ui.git \
     && cd skywalking-rocketbot-ui \
     && git checkout v8.9.1 \
     && npm install --registry https://registry.npm.taobao.org \
     && npm install

EXPOSE 8080

CMD ["npm", "run","serve"]